package cc.linker.steplink.crm.dao;

import cc.linker.steplink.crm.domain.CustomerInfoIdp;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

public interface CustomerInfoIdpDao {
    int deleteByPrimaryKey(String idpId);

    int insert(CustomerInfoIdp record);

    int insertSelective(CustomerInfoIdp record);

    CustomerInfoIdp selectByPrimaryKey(String idpId);

    int updateByPrimaryKeySelective(CustomerInfoIdp record);

    int updateByPrimaryKey(CustomerInfoIdp record);

    @Select("SELECT\n" +
            "\tIDP_TOKEN idpToken,\n" +
            "\tIDP_OPENID idpOpenid\n" +
            "FROM\n" +
            "\tt_crm_busi_customer_info_idp \n" +
            "WHERE\n" +
            "\tCUSTOMER_ID = #{id}")
    Map<String, Object> getIdentification(String id);
}